package com.zq.assistant.func.api;

import com.zq.assistant.bean.FileInfo;
import com.zq.assistant.bean.ResultList;
import com.zq.assistant.func.apifactory.annotation.RequestCallback;
import com.zq.assistant.func.apifactory.annotation.RequestParam;
import com.zq.assistant.func.apifactory.annotation.RequestPath;
import com.zq.assistant.func.apifactory.api.Cancelable;
import com.zq.assistant.func.apifactory.api.LifeCycleBinder;
import com.zq.assistant.func.apifactory.callback.ResultCallback;

/**
 * Created by zhangqiang on 17-5-10.
 */

public interface FileAPI extends Cancelable<FileAPI>,LifeCycleBinder<FileAPI>{

    @RequestPath("/file/getFileList")
    void getFileList(@RequestParam(key = "path") String path,
                     @RequestCallback(genericClass = ResultList.class,genericClass2 = FileInfo.class)ResultCallback<ResultList<FileInfo>> callback);

}
